<?php/** * Created by PhpStorm. * User: goouc * Date: 2019/9/10 * Time: 14:11 */global $_W,$_GPC;$classid = $_GPC['classid'];$banner = pdo_fetchall("select * from ".tablename($this->t_banner)." where weid = :weid and status = :status and position = :position and classid like '%\"".$classid."\"%' ",array(':weid'=> $_GPC['i'],':status'=>1,':position'=>1));if(empty($banner)){    $banner = pdo_getall('goouc_class_banner',array('weid'=>$_GPC['i'],'status'=>1,'position'=>1));}foreach($banner as $k=>$v){    $banner[$k]['image'] = $_W['attachurl'].$v['image'];}return $this->getresult(0,'首页轮播图',array('banner'=>$banner));